package com.ruoyi.business.domain;

import com.ruoyi.common.annotation.Excel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Customer {
    /** */
    @Excel(name = "岗位序号", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    /** */
    @Excel(name = "岗位名称")
    private String name;

    /** */
    @Excel(name = "客户电话")
    private String phone;

    /** */
    @Excel(name = "来源渠道",  readConverterExp = "0=抖音,1=微信", cellType = Excel.ColumnType.NUMERIC)
    private Long source_value;

    /** */
    @Excel(name = "意向校区", readConverterExp = "0=日本校区,1=武汉校区",  cellType = Excel.ColumnType.NUMERIC)
    private Long school_value;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @NotBlank(message = "客户名不能为空")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @NotBlank(message = "电话不能为空")
    @Size(min = 11, max = 11, message = "电话必须是11位数字")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getSource_value() {
        return source_value;
    }

    public void setSource_value(Long source_value) {
        this.source_value = source_value;
    }

    public Long getSchool_value() {
        return school_value;
    }

    public void setSchool_value(Long school_value) {
        this.school_value = school_value;
    }
}